package net.akcegaraz.tipleague.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class HelloEvent extends GwtEvent<HelloEventHandler> {
    public static Type<HelloEventHandler> TYPE = new Type<HelloEventHandler>();
    private final String hello;

    public HelloEvent(String hello) {
	this.hello = hello;
    }

    @Override
    public Type<HelloEventHandler> getAssociatedType() {
	return TYPE;
    }

    public String getHello() {
	return hello;
    }

    @Override
    protected void dispatch(HelloEventHandler handler) {
	handler.onHello(this);
    }
}
